(set-logic ALL)
(set-info :status sat)
(declare-fun A () (Bag Int))
(declare-fun B () (Bag Int))
(declare-fun x () Int)
(declare-fun y () Int)
(declare-fun p (Int) Bool)
(assert (= A (bag.union_max (bag x 1) (bag y 2))))
(assert (= B (bag.filter p A)))
(assert (distinct (p x) (p y)))
(check-sat)
